{extend name="template/base_iframe" /}


{block name="content"}
    <div class="check-box pd-5">
        <input type="checkbox" id="checkbox-1" class="select-all">
        <label for="checkbox-1">全选/反选</label>
    </div>
    <form id="set" >
        <input type="hidden" name="id" value="{$id}">
        {volist name="parent" id="v"}
            <div class="pd-5">
            <table class="table table-border table-bordered table-hover index">
                <thead>
                    <tr>
                        <th class="text-c" width="5%"><input type="checkbox" name="auth_id[]" class="index-chkbox" value="{$v.id}" {$is_auth[$v['id']]? 'checked' : ''}/></th>
                        <th class="text-c" width="40%">{$v.title}</th>
                        <th class="text-c">{$v.name}</th>
                    </tr>
                </thead>
                {volist name="v.child" id="v1"}
                    <tbody>
                        <tr class="success">
                            <td class="text-c"><input type="checkbox" name="auth_id[]" class="action-chkbox" value="{$v1.id}" {$is_auth[$v1['id']]? 'checked' : ''}/></td>
                            <td class="text-c">{$v1.title}</td>
                            <td class="text-c">{$v1.name}</td>
                        </tr>
                    </tbody>
                {/volist}                                        
            </table>
            </div>
        {/volist}
    </form>

{/block}



{block name="script"}
	<script type="text/javascript" src="__AJS__/auth_group/set_auth_page.js"></script>
{/block}